#ifndef CVHELPER_H
#define CVHELPER_H

// 常见opencv 图像操作的一层wrap

#include "opencv2/opencv.hpp"
#include <opencv2/videoio.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>

void TransferRGB2YCrCb(cv::Mat &input, std::vector<cv::Mat> &chls);
void MergeYCrCb2RGB(cv::Mat &output, std::vector<cv::Mat> &chls);
cv::Mat clahe_deal(cv::Mat &src, double ClipLimit , int TilesGridSize );
int  Save1BitImage(const  cv::Mat img, std::string dst);
int  Mat2Binary(const  cv::Mat img, int  line_byte, char* data);

#endif // CVHELPER_H
